import { ReactNode } from "react";
import { MenuCode, WorkbenchesType } from "../enumType";

interface MenuItemProps {
    id: string | number;
    code: MenuCode,
    name: string;
    icon: ReactNode | string;
    content: ReactNode;
    onClick: (itemMenu: MenuItemProps) => void;
}

interface WorkbenchesTabProps {
    id: string | number;
    name: string;
    type: WorkbenchesType;
    isActive: boolean;
    onClick: (item: WorkbenchesTabProps) => void;
    get: (param?: any) => Promise<any>;
    create: (param?: any) => Promise<any>;
    update: (param?: any) => Promise<any>;
    delete: (param?: any) => Promise<any>;
}

export type {
    MenuItemProps,
    WorkbenchesTabProps,
}